package com.nondo.rdp.finance.service.analysis;

import com.nondo.rdp.auth.domain.User;
import com.nondo.rdp.finance.domain.analysis.AnalysisComment;
import com.nondo.rdp.finance.domain.analysis.AnalysisCommentUp;

public interface AnalysisCommentUpService {
    /**
     * 保存分析评论
     *
     * @param analysisCommentUp
     */
    AnalysisCommentUp save(AnalysisCommentUp analysisCommentUp);

    /**
     * 根据主键ID删除分析评论
     *
     * @param id
     */
    void delete(Long id);

    /**
     * 根据主键ID查询分析评论
     *
     * @param id
     * @return
     */
    AnalysisCommentUp findOne(Long id);

    /**
     * 根据分析ID和用户ID查找评论
     *
     * @param analysisComment
     * @param user
     * @return
     */
    AnalysisCommentUp findByAnalysisCommentAndUser(AnalysisComment analysisComment, User user);
}
